//
//  EPMComposeBtn.m
//  WeiBoByOC
//
//  Created by 马继鵬 on 17/4/1.
//  Copyright © 2017年 7TH. All rights reserved.
//

#import "EPMComposeBtn.h"

@implementation EPMComposeBtn
//关闭高亮状态
- (BOOL)highlighted{
    return false;
}

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]){
        
        self.imageView.contentMode = UIViewContentModeCenter;
        self.titleLabel.font = [UIFont systemFontOfSize:14];
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        [self setTitleColor:[UIColor darkGrayColor] forState:UIControlStateNormal];
        
    }
    return self;
}

-(void)setHighlighted:(BOOL)highlighted{
    highlighted = NO;
    [super setHighlighted:highlighted];
}
- (void)layoutSubviews{
    [super layoutSubviews];
    self.imageView.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.width);
    self.titleLabel.frame = CGRectMake(0, self.frame.size.width, self.frame.size.width, self.frame.size.height-self.frame.size.width);
    
}
@end
